import request from '@/utils/request'

// 保单列表
export function apiInsurancePolicyLists(params: any) {
    return request.get({ url: '/insurance_policy/lists', params })
}

// 添加保单
export function apiInsurancePolicyAdd(params: any) {
    return request.post({ url: '/insurance_policy/add', params })
}

// 编辑保单
export function apiInsurancePolicyEdit(params: any) {
    return request.post({ url: '/insurance_policy/edit', params })
}

// 删除保单
export function apiInsurancePolicyDelete(params: any) {
    return request.post({ url: '/insurance_policy/delete', params })
}

// 保单详情
export function apiInsurancePolicyDetail(params: any) {
    return request.get({ url: '/insurance_policy/detail', params })
}

export function apiInsuranceApply(params: any) {
    return request.post({ url: '/insurance_policy/apply', params })
}